package WeekThree;

import java.util.Scanner;

public class Url {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入域名：");
        String url = scanner.next();
        if (url.indexOf("www")!=-1){
            System.out.println("二级域名");
        }else {
            System.out.println("顶级域名");
        }
    }
}
